<?php


namespace app\mod\pcr\model;


use think\Model;

class PcrGveBoss extends Model {

    protected $table = 'pcr_gve_boss';

    public function getListByThemeID(int $theme_id) {
        return $this->where('theme_id', $theme_id)->order('sort_id', 'asc')->select();
    }

    public function getByThemeSort(int $theme_id, int $sort) {
        return $this->where('theme_id', $theme_id)->where('sort_id', $sort)->find();
    }

}
